<style lang="less">
    @import "assetDetail.less";
</style>
<template>
    <div class="asset">
        <Card style="width:100%" shadow>
            <Collapse v-model="values">
                <Panel name="1">
                    基本信息
                    <div slot="content">
                        <Form ref="baseInfo" :label-width="160" :model="pageInfo" label-position="right"  inline >
                            <Row>
                                <Button @click="showWarningInfo" style="float: right" type="success" v-if="carInfo.caseFlag && this.pageTwo">打开</Button>
                            </Row>
                            <Row>
                                <Col span="8">
                                    <FormItem v-if="pageInfo.channelBelong==='01'" prop="channelAddress" label="车商省市">
                                        <Input type="text" v-model="pageInfo.channelAddress" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                    <FormItem v-if="pageInfo.channelBelong!=='01'" prop="channelAddress" label="经销商省市">
                                        <Input type="text" v-model="pageInfo.channelAddress" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                </Col>
                                <Col span="8">
                                    <FormItem   v-if="pageInfo.channelBelong==='01'"  prop="channelFullName" label="车商">
                                        <Input type="text" v-model="pageInfo.channelFullName" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                    <FormItem   v-if="pageInfo.channelBelong!=='01'"  prop="channelFullName" label="经销商">
                                        <Input type="text" v-model="pageInfo.channelFullName" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                </Col>
                                <Col span="8">
                                    <FormItem v-if="pageInfo.channelBelong==='01'"  prop="qualityGrade" label="车商优质等级">
                                        <Select v-model="pageInfo.qualityGrade" disabled placeholder="请选择">
                                            <Option v-for="item in dataDic.qualityGrade" :label="item.title" :value="item.value" :key="item.value">{{ item.title }}</Option>
                                        </Select>
                                    </FormItem>
                                    <FormItem v-if="pageInfo.channelBelong!=='01'"  prop="qualityGrade" label="优质等级">
                                        <Select v-model="pageInfo.qualityGrade" disabled placeholder="请选择">
                                            <Option v-for="item in dataDic.qualityGrade" :label="item.title" :value="item.value" :key="item.value">{{ item.title }}</Option>
                                        </Select>
                                    </FormItem>
                                </Col>
                            </Row>
                            <Row>
                                <Col span="8">
                                    <FormItem prop="saleAdvisor" label="信贷专员">
                                        <Input type="text" v-model="pageInfo.saleAdvisor" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                </Col>
                                <Col span="8">
                                    <FormItem prop="saleAdvisorPhone" label="专员电话">
                                        <Input type="text" v-model="pageInfo.saleAdvisorPhone" disabled placeholder="请输入">
                                        </Input>
                                        <Button style="margin-left:5px;" type="success" size="small" @click="callPhone(pageInfo.saleAdvisorPhone,'','',pageInfo.saleAdvisor)" icon="md-call" v-if="isCheck">
                                        </Button>
                                        <Button style="margin-left:5px" type="success" size="small" @click="getMsgTemp(pageInfo.saleAdvisor,pageInfo.saleAdvisorPhone,'06')" icon="md-mail" v-if="isCheck">
                                        </Button>
                                    </FormItem>
                                </Col>

                                <Col span="8">
                                    <FormItem v-if="pageInfo.channelBelong==='01'"  prop="channelGrade" label="车商评级">
                                        <Select v-model="pageInfo.channelGrade" disabled placeholder="请选择">
                                            <Option v-for="item in dataDic.channelGrade" :label="item.title" :value="item.value" :key="item.value">{{ item.title }}</Option>
                                        </Select>
                                    </FormItem>
                                    <FormItem v-if="pageInfo.channelBelong!=='01'"  prop="channelGrade" label="评级">
                                        <Select v-model="pageInfo.channelGrade" disabled placeholder="请选择">
                                            <Option v-for="item in dataDic.channelGrade" :label="item.title" :value="item.value" :key="item.value">{{ item.title }}</Option>
                                        </Select>
                                    </FormItem>
                                </Col>
                            </Row>
                        </Form>
                    </div>
                </Panel>
                <Panel name="2" v-show="this.isAffixed">
                    挂靠信息
                    <div slot="content">
                        <Form ref="baseInfo" :label-width="160" :model="pageInfo.affiliateInfo" label-position="right"  inline >
                            <div v-if="pageInfo.affiliatedWay==='00' || pageInfo.affiliatedWay === '01'">
                            <Row>
                                <Col span="8">
                                    <FormItem prop="affiliatedWay" label="挂靠方式">
                                        <Select v-model="pageInfo.affiliatedWay" disabled placeholder="请选择">
                                            <Option v-for="item in dataDic.affiliatedWay" :label="item.title" :value="item.value" :key="item.value">{{ item.title }}</Option>
                                        </Select>
                                    </FormItem>
                                </Col>
                                <Col span="8">
                                    <FormItem prop="affiliatedName" label="公司名称">
                                        <Input type="text" v-model="pageInfo.affiliateInfo.affiliatedName" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                </Col>
                                <Col span="8">
                                    <FormItem prop="socUniCrtCode" label="统一社会信用代码">
                                        <Input type="text" v-model="pageInfo.affiliateInfo.socUniCrtCode" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                </Col>
                            </Row>
                            <Row>
                                <Col span="8">
                                    <FormItem prop="socUniCrtCode" label="法人姓名">
                                        <Input type="text" v-model="pageInfo.affiliateInfo.legalPersonName" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                </Col>
                                <Col span="8">
                                    <FormItem prop="transPermitValidity" label="运输许可证有效期">
                                        <DatePicker type="date" v-model="pageInfo.affiliateInfo.transPermitValidity" disabled placeholder="选择日期"></DatePicker>
                                    </FormItem>
                                </Col>
                                <Col span="8">
                                    <FormItem prop="legalPersonTel" label="联系电话">
                                        <Input type="text" v-model="pageInfo.affiliateInfo.legalPersonTel" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                </Col>
                            </Row>
                            <Row>
                                <Col span="24">
                                    <FormItem prop="registeredAddress" label="注册地址">
                                        <Input type="text" v-model="pageInfo.affiliateInfo.registeredAddress" disabled placeholder="请输入">
                                        </Input>
                                    </FormItem>
                                </Col>
                            </Row>
                            </div>
                            <div v-if="pageInfo.affiliatedWay==='02'">
                                <Row>
                                    <Col span="8">
                                        <FormItem prop="affiliatedWay" label="挂靠方式">
                                            <Select v-model="pageInfo.affiliatedWay" disabled placeholder="请选择">
                                                <Option v-for="item in dataDic.affiliatedWay" :label="item.title" :value="item.value" :key="item.value">{{ item.title }}</Option>
                                            </Select>
                                        </FormItem>
                                    </Col>
                                    <Col span="8">
                                        <FormItem prop="affiliatedName" label="挂靠名称">
                                            <Input type="text" v-model="pageInfo.affiliateInfo.affiliatedName" disabled placeholder="请输入">
                                            </Input>
                                        </FormItem>
                                    </Col>

                                </Row>
                            </div>
                            <div v-if="pageInfo.affiliatedWay==='03'">
                                <Row>
                                    <Col span="8">
                                        <FormItem prop="affiliatedWay" label="挂靠方式">
                                            <Select v-model="pageInfo.affiliatedWay" disabled placeholder="请选择">
                                                <Option v-for="item in dataDic.affiliatedWay" :label="item.title" :value="item.value" :key="item.value">{{ item.title }}</Option>
                                            </Select>
                                        </FormItem>
                                    </Col>
                                    <Col span="8">
                                        <FormItem prop="affiliatedName" label="运营公司">
                                            <Input type="text" v-model="pageInfo.affiliateInfo.affiliatedName" disabled placeholder="请输入">
                                            </Input>
                                        </FormItem>
                                    </Col>
                                    <Col span="8">
                                        <FormItem prop="cooperPlat" label="网约车平台">
                                            <Input type="text" v-model="this.platData" disabled placeholder="请输入">
                                            </Input>
                                        </FormItem>
                                    </Col>
                                </Row>
                            </div>

                        </Form>
                    </div>
                </Panel>
                <Panel name="3">
                    资产信息
                    <div slot="content">
                        <car-detail ref="newCarDetail" @isDeal="isDeal" :apply-no="this.applyNumber" :is-check="isCheck"  v-on:maxLoanInfo="updateTotalLoanAmt"></car-detail>
                    </div>
                </Panel>
                <Panel name="4">
                    金融产品
                    <div slot="content">
                        <financial-prod
                        :additionalProessForm="additionalProessForm"
                        :proessForm="proessForm"
                        :carProessForm="carProessForm"
                        :isShowDetails="isShowDetails"
                        ref="financialProd"
                        @isShowModel="isShowModel"
                        @scheduleTitle="scheduleTitle"
                        @showCalculate="showCalculate"
                        @isChange="isChange"
                        :uuid="uuid"
                        :intropath="intropath"
                        :curTab="tabName"
                        :applyNo="applyNo"
                        @caluMaxValue="caluMaxValue"
                        @passValiate="passValiate"
                        :queryFormEl="queryFormEl"
                        :isAppear="isAppear"
                        :loanAmtMax="loanAmtMax"
                    >
                    <template slot="afsBusiness">
                        <div>
                            <div class="submit tlgc" v-if="!isShowDetails">
                                <Button type="primary" @click="calculate" style="width: 100px;height: 30px;">还款计划表</Button>
                                <Button type="primary" style="margin-left: 30px;width: 100px;height: 30px;"
                                        @click="financialSave" :disabled="change">更新
                                </Button>
                                <Button type="primary" @click="resetFinancialInfo" style="margin-left: 30px;width: 100px;height: 30px;" :disabled="!isAppear">重置</Button>
                            </div>
                            <Modal width="50%" v-model="proessModel" :footer-hide="true" @on-cancel="cancelModel">
                                <div class="scheduleTitle">
                                    <span v-for="(item,index) in scheduleTitleList" @click="tagTitle(item.value)"
                                        :class="{curScheStyle:curSchedule===item.value}">
                                        {{item.title}}
                                    </span>
                                </div>
                                <div class="sliderList">
                                    <div>
                                        <Form ref="proessForm" :model="proessForm" :rules="proessFormValidate"
                                                :label-width="140" v-show="curSchedule=='00'">
                                            <Row v-for="(item,index) in proessForm.proessList" :key="index"
                                                    style="padding: 0px 30px;">
                                                <Col :span="2">
                                                    <div style="padding-top: 8px;">
                                                        {{item.no}}<span>期</span>
                                                    </div>
                                                </Col>
                                                <Col :span="5">
                                                    <FormItem label="" :prop="'proessList['+index+'].inputValue'"
                                                                class="inline-block mb10" :label-width="0">
                                                        <Input v-model="item.inputValue" placeholder=""
                                                                @on-blur="getInputValue(item.inputValue,index,isreadonly)"
                                                                :readonly="isreadonly"/>
                                                    </FormItem>
                                                </Col>
                                                <Col :span="16" offset="1">
                                                    <Slider :value="item.proessValue" range :disabled="true"
                                                            :max="maxValue" :step="stepNumber"></Slider>
                                                </Col>
                                            </Row>
                                        </Form>
                                        <Form ref="carProessForm" :model="carProessForm" :label-width="140"
                                                v-show="curSchedule=='01'">
                                            <Row v-for="(item,index) in carProessForm.proessList" :key="index"
                                                    style="padding: 0px 30px;">
                                                <Col :span="2">
                                                    <div style="padding-top: 8px;">
                                                        {{item.no}}<span>期</span>
                                                    </div>
                                                </Col>
                                                <Col :span="5">
                                                    <FormItem label="" class="inline-block mb10" :label-width="0">
                                                        <Input v-model="item.inputValue" placeholder=""
                                                                :readonly="isreadonly"/>
                                                    </FormItem>
                                                </Col>
                                                <Col :span="16" offset="1">
                                                    <Slider :value="item.proessValue" range :disabled="true"
                                                            :max="maxValue" :step="stepNumber"></Slider>
                                                </Col>
                                            </Row>
                                        </Form>
                                        <Form ref="additionalProessForm" :model="additionalProessForm"
                                                :label-width="140" v-show="curSchedule=='02'">
                                            <Row v-for="(item,index) in additionalProessForm.proessList" :key="index"
                                                    style="padding: 0px 30px;">
                                                <Col :span="2">
                                                    <div style="padding-top: 8px;">
                                                        {{item.no}}<span>期</span>
                                                    </div>
                                                </Col>
                                                <Col :span="5">
                                                    <FormItem label="" class="inline-block mb10" :label-width="0">
                                                        <Input v-model="item.inputValue" placeholder=""
                                                                :readonly="isreadonly"/>
                                                    </FormItem>
                                                </Col>
                                                <Col :span="16" offset="1">
                                                    <Slider :value="item.proessValue" range :disabled="true"
                                                            :max="maxValue" :step="stepNumber"></Slider>
                                                </Col>
                                            </Row>
                                        </Form>
                                    </div>
                                </div>
                                <div v-if="isShowCalculate" style="text-align: center;margin:0px;" class="submit">
                                    <Button type="primary" @click="calculateIntrate" style="width: 100px;height: 30px;">计算</Button>
                                </div>
                            </Modal>
                        </div>
                    </template>
                    </financial-prod>
                        <!-- <apply-cost-detail ref="applyCostDetail" :apply-no="this.applyNumber" :is-check="isCheck"></apply-cost-detail> -->
                    </div>
                </Panel>
            </Collapse>
        </Card>
        <Modal v-model="msgModelVisible" title="短信模板" :mask-closable='false' :width="350" :closable="false">
            <Spin fix size="large" v-if="msgModelLoading">
                <slot name="loading"></slot>
            </Spin>
            <Form v-model="msgTemplate">
                <Form-item label="模板内容:" prop="templateContent">
                    <textarea v-model="msgTemplate.templateContent" type="textarea" :rows="4" style="width: 320px;height: 200px;line-height: 20px"
                              placeholder="请输入短信模板" maxlength="512"/>
                </Form-item>
            </Form>
            <div slot="footer">
                <Button type="primary" @click="sendMsg">发送</Button>
                <Button type="primary" ghost @click="closeMsg" >关闭</Button>
            </div>
        </Modal>
         <Modal :width="430"  v-model="isShowWarningInfo" :mask-closable='false' title="估值报告比对信息" :closable="false" draggable>
            <div v-if="carInfo.warningInfo.price.flag=='no'">
                <div style="font-weight: bolder">{{carInfo.warningInfo.price.describe}}
                </div>
                <li style="color: red" v-for="item in this.carInfo.warningInfo.price.msgs">{{item}}</li>
                <li v-if="carInfo.warningInfo.price.accidenttyp!='正常'&&carInfo.warningInfo.price.accidenttyp!=''" style="color:red">事故车类型:{{carInfo.warningInfo.price.accidenttyp}}</li>
                <li v-if="carInfo.warningInfo.price.accidenttyp=='正常'" style="color: #52c41a">事故车类型:{{carInfo.warningInfo.price.accidenttyp}}</li>
                <li v-if="carInfo.warningInfo.price.accidenttyp==''" style="color: red">未找到车型报告！</li>
            </div>
            <div v-if="carInfo.warningInfo.price.flag=='yes'">
                <div style="color: #52c41a;font-weight: bolder">{{carInfo.warningInfo.price.describe}}
                </div>
                <li style="color: #52c41a">事故车类型:{{carInfo.warningInfo.price.accidenttyp}}</li>
            </div>
            <div slot="footer">
                <Button type="text" @click="backGo">关闭</Button>
            </div>
        </Modal>
    </div>
</template>

<script>
    import { mapMutations } from "vuex";

    import {
        queryAssetSummaryInfo
    } from "@/projects/afs-core-business/api/afs-case/infomationDetail/assetDetail";
    //短信发送
    import {
        sendMessageInfo,
        sendMsg,
        getMsgTempByType
    } from "@/projects/afs-core-business/api/afs-case/message-template/messageTemplate";
    import {
        getByTypes,
        getDictDataByType
    } from "_p/basic/api/admin/datadic";
    import applyCostDetail from "../cost/applyCostDetail.vue";
    import carDetail from "../car/carDetail.vue";
    import {
        queryCarDetailInfo,
        queryCarSummaryInfo
    } from "@/projects/afs-core-business/api/afs-case/infomationDetail/carDetail";
    import FinancialProd from "../cost/financialProd";
    import * as applyUtils from '_p/afs-apply/assets/js/utils.js'
    export default {
        name: "asset-detail",
        components: {
            applyCostDetail,
            carDetail,
            FinancialProd
        },
        props: {
            applyNo: {
                required: false,
                default:()=>{
                    return '';
                }
            },
            isCheck: {
                type: Boolean
            },
            isAppear: {
                type: Boolean
            },
            tabName:{
                type:String
            },
        },
        watch:{
            tabName(val){
                if(val=='name2' && !this.initialized){
                    this.init();
                    this.initialized = true;
                }
                this.curTab=val;
            }
        },
        data:function () {
            return {
                initialized:false,
                //理论最大额度
                loanAmtMax:0,
                applyNumber:'',
                isQuit: false,
                cooperData: [],
                platData: '',
                operationLoading: false,
                values:["1","2","3","4"],
                isAffixed :false,
                dicKeys: [
                    "affiliatedWay","qualityGrade","channelGrade","netCarCooperPlat"
                ],
                dataDic:{},
                pageInfo:{
                    baseInfo:{},
                    affiliateInfo:{}
                },

                uuid:"",
                // 只有车贷的申请编号
                // applyNo:"NGW-DP-A000625",
                // applyNo:"NGW-DP-A000761",
                // applyNo:"NGW-DP-A000762",
                isShowDetails:false,
                stepNumber: 0.01,
                maxValue: 800,
                change:true,
                proessModel: false,
                isShowCalculate: false,
                additionalProessForm: {
                    proessList: [],
                },
                proessFormValidate: {},
                proessForm: {
                    proessList: [],
                },
                carProessForm: {
                    proessList: [],
                },
                scheduleTitleList: [],
                curSchedule: "00",
                intropath: "afsApply",
                isreadonly: true,
                msgTemplate:{},
                msgModelVisible:false,
                msgModelLoading:false,
                pageTwo:false,
                isShowWarningInfo: false,
                carInfo:{
                    warningInfo:{
                        price:{
                            showflag:"",
                            title:"",
                            msgs:[],
                            flag:"",
                            describe:"",
                            accidenttyp:""
                        }
                    },
                    backSign:"",
                    reconsiderSign:"",
                    caseFlag:false
                }
            }
        },
        methods:{

            updateTotalLoanAmt(loanAmtMax){
                this.loanAmtMax=loanAmtMax;
                this.$refs.financialProd.getTheoryloanAmt(loanAmtMax)
            },
            showWarningInfo() {
                this.isShowWarningInfo = true;
            },
            backGo() {
                this.isShowWarningInfo = false;
            },
            initCarDetailInfo(){
                let params = {
                    applyNo: this.applyNumber
                }
                queryCarDetailInfo(params).then(res => {
                    if (res.code === "0000") {
                        this.carInfo = res.data;
                    }
                });
            },
            initCarSummaryInfo(){
                let params = {
                    applyNo: this.applyNumber
                }
                queryCarSummaryInfo(params).then(res => {
                    if (res.code === "0000") {
                        this.pageTwo = res.data.pageTwo;
                    }
                });
            },
            isChange(val) {
                this.change = false
                if (val) {
                    this.isQuit = true
                }else{
                    this.isQuit=false
                }
            },
            /* 拨打电话
             *   注意：  mapMutations 需要从vuex引入 照着写就行。 //import { mapMutations } from "vuex";
             *  要变的是 传给软电话的数据
             */
            ...mapMutations(['updatePhoneParams']),
            // 打电话 调这个方法
            callPhone(phone,custRelation,custId,custName){
                // 传给软电话的数据
                let params={
                    isCallOut:true, //是否是一键拨打电话 必填
                    callNumber:phone ,// 拨打的电话号码 必填
                    phone:phone,
                    applyNo:this.applyNo,
                    custRelation:custRelation,
                    custId:custId,
                    custName:custName
                    // ... // 其他 需要传给后台的参数
                }

                this.updatePhoneParams(params)
            },
            //add by gjq 融资信息重置
            resetFinancialInfo() {
                this.$refs.financialProd.resetFinancialInfo();
                this.loanAmtMax=0;
            },
            isDeal() {
                this.$refs.financialProd.isDeal();
            },
            initDataDic(){
                let self = this;
                getByTypes(this.dicKeys).then(res => {
                    if (res.code === "0000" && res.data) {
                        self.dataDic = res.data;
                    }
                });
            },
            setCooperPlat(){
                if (this.pageInfo.cooperPlat) {
                    this.cooperData = this.pageInfo.cooperPlat.split(',')
                    this.cooperData.forEach( cooper => {
                        this.dataDic.netCarCooperPlat.forEach( plat => {
                            if (cooper === plat.value) {
                                this.platData += plat.title+'  ';
                            }
                        })
                    })
                }
            },
            initInfo(){
                let params = {
                    applyNo: this.applyNumber
                }
                queryAssetSummaryInfo(params).then(res => {
                    if (res.code === "0000") {
                        this.pageInfo = res.data;
                        this.isAffixed = this.pageInfo.affixed;
                        this.setCooperPlat();
                    }
                });
            },
            init() {
                this.initDataDic();
                this.initInfo();
                this.initCarDetailInfo();
                this.initCarSummaryInfo();
            },

            getUuid() {
                let seed = 0;
                const now = Date.now();
                return 'ui-tab-' + now + '-' + (seed++);
            },
            calculate() {
                if (this.isQuit){
                    this.$Message.warning("新首付比例不能小于原比例！");
                }else {
                    this.$refs.financialProd.calculate('calculate');
                }
            },
            calculateIntrate() {
                this.$refs.financialProd.calculateIntrate('calculate');
            },
            financialSave() {
                this.$emit('additionChange',true)
                if (this.isQuit){
                    this.$Message.warning("新首付比例不能小于原比例！");
                }else {
                    this.$refs.financialProd.calculate('update');
                }
            },
            tagTitle(value) {
                this.curSchedule = value;
            },
            cancelModel() {
                this.proessModel = false;
            },
            isShowModel(val) {
                this.proessModel = val;
            },
            scheduleTitle(val) {
                this.scheduleTitleList = val;
            },
            showCalculate(falseVal, trueVal) {
                this.isreadonly = falseVal;
                this.isShowCalculate = trueVal;
            },
            getInputValue(value, index, isreadonly) {
                if (!isreadonly) {
                    if (applyUtils.isTwoDicmal(value)) {
                        this.proessForm.proessList[index].proessValue = [0, ""]
                        this.proessForm.proessList[index].proessValue.splice(1, 1, value);
                    }
                }
            },
            caluMaxValue(maxValue) {
                this.maxValue = maxValue;
            },
            passValiate() {
                this.initProessValiate();
            },
            queryFormEl() {
                return this.$refs.proessForm;
            },
            // 校验附加贷
            initProessValiate() {
                for (let i = 0; i < this.proessForm.proessList.length; i++) {
                    this.proessFormValidate["proessList[" + i + "].inputValue"] = [
                        {validator: applyUtils.isTwoDicmalValiate, trigger: "blur"}
                    ];
                }
            },
            //发送短信
            //发送短信
            sendMsg() {
                this.$Modal.confirm({
                    title: ("发送短信"),
                    content: "确认发送?",
                    onOk: () => {
                        this.msgModelLoading = true;
                        sendMsg(this.msgTemplate).then(res=>{
                            this.$Message.info("操作成功！");
                        }).finally(()=>{
                            this.msgModelLoading = false;
                            this.closeMsg();
                        })
                    }
                });
            },
            getMsgTemp(name,phone,tempType){
                let params = {
                    name: name,
                    phone: phone,
                    applyNo: this.applyNo,
                    templateType: tempType
                }
                this.msgModelVisible = true;
                this.msgModelLoading = true;
                getMsgTempByType(params).then(res=>{
                    this.msgTemplate = res.data;
                    this.msgTemplate.name = name;
                    this.msgTemplate.phone = phone;
                    this.msgTemplate.applyNo = this.applyNo;
                }).finally(()=>{
                    this.msgModelLoading = false;
                })
            },
            closeMsg(){
                this.msgModelVisible = false;
            }
        },
        mounted() {

        },
        created() {
            this.applyNumber = this.applyNo!=''?this.applyNo:this.afs.getPageParams(this).applyNo;
        }
    }
</script>

<style scoped>
.scheduleTitle {
        padding-left: 30px;
        line-height: 20px;
        font-size: 14px;
    }

    .scheduleTitle span.curScheStyle {
        color: #0D8EF5;
    }

</style>
